package com.kuang.service;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;

//zookeeper服务祖册与发现

@Service //可以被扫描到，项目启动自动注册到注册中心zookeeper
@Component //使用的dubbo不要使用service注解
public class TicketServiceImpl implements TicketService {
    @Override
    public String getTicket() {
        return "家哇11111";
    }

    @Override
    public String getTicket2() {
        return "家哇2222";
    }
}
